<!--<script setup>-->
<!--// This starter template is using Vue 3 <script setup> SFCs-->
<!--// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup-->
<!--</script>-->

<template>
  <el-menu
      :default-active="activeIndex"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
  >
    <el-menu-item index="1">
      <router-link to="Home">主页</router-link>
    </el-menu-item>
    <el-menu-item index="2">
      <router-link to="College">学院</router-link>
    </el-menu-item>
    <el-menu-item index="3">
      <router-link to="Student">学生</router-link>
    </el-menu-item>
  </el-menu>
  <router-view />
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const activeIndex = ref('1')
const handleSelect = (key: string, keyPath: string[]) => {
  // console.log(key, keyPath)
}
</script>

<style scoped>
</style>
